package com.lostad.app.core;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import com.lostad.app.core.dao.UserDao;
import com.lostad.app.core.domain.AppUser;
import com.lostad.app.core.domain.Task;


@SpringBootApplication
public class WebApplication implements CommandLineRunner {

	@Autowired
	private UserDao taskRepository;

	public static void main(String[] args) {
		SpringApplication.run(WebApplication.class, args);
	}

	@Override
	public void run(String... strings) throws Exception {
		AppUser u = new AppUser();
		u.setNickname("test");
		u.setUsername("ssz");
		taskRepository.save(u);
	}
}
